//
//  UserIndustryDataModel.h
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/12.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "UserIndustryDataText.h"

NS_ASSUME_NONNULL_BEGIN
/**
 "project_id": 1,
 "project_name": "景泰以太坊产业C区",
 "curr": "BTC",
 "surplus": "1.2000000",
 "amount": "1.2000000",
 "start_time": "2018-11-29 19:21:01",
 "end_time": "2018-12-01 00:09:01",
 "status": 1,
 "join_amount": "0.0030000",
 "gain_amount": "0.0005000",
 "them": "80.00",
 "round": 7
 */

typedef NS_ENUM(NSInteger,UserIndustryDataProjectStatus) {
    UserIndustryDataProjectStatus_0 = 0,
    UserIndustryDataProjectStatus_1 = 1,
    UserIndustryDataProjectStatus_2 = 2,
    UserIndustryDataProjectStatus_3 = 3,
    UserIndustryDataProjectStatus_4 = 4,
    UserIndustryDataProjectStatus_5 = 5,
    UserIndustryDataProjectStatus_6 = 6,
    UserIndustryDataProjectStatus_7 = 7,
};

@interface UserIndustryDataModel : NSObject

/**
 *project_id
 */
@property (nonatomic, copy) NSString *project_id;

/**
 *"project_name": "景泰以太坊产业C区"
 */
@property (nonatomic, copy) NSString *project_name;

/**
 *"curr": "BTC"
 */
@property (nonatomic, copy) NSString *curr;
/**
 *"surplus": "1.2000000" 剩余
 */
@property (nonatomic, copy) NSString *surplus;
/**
 *"amount": "1.2000000" 筹集
 */
@property (nonatomic, copy) NSString *amount;
/**
 *"start_time": "2018-11-29 19:21:01"
 */
@property (nonatomic, copy) NSString *start_time;

/**
 *"end_time": "2018-12-01 00:09:01"
 */
@property (nonatomic, copy) NSString *end_time;

/**
 *"status": 1, 当前状态 0-7 分别对应 s0-s7
 */
@property (nonatomic, assign) UserIndustryDataProjectStatus status;

/**
 *"join_amount": "0.0030000"  参与金额
 */
@property (nonatomic, copy) NSString *join_amount;

/**
 *"gain_amount": "0.0005000" 参与之后会得到的金额（这个参数是得利部分，所有金额需要加上参与金额）
 */
@property (nonatomic, copy) NSString *gain_amount;

/**
 *"them": "80.00"
 */
@property (nonatomic, copy) NSString *them;

/**
 *"round": 7
 */
@property (nonatomic, copy) NSString *round;

/**
 *is_next 是否是预购
 */
@property (nonatomic, assign) BOOL is_next;

/**
 *UserIndustryDataText 在请求数据后处理数据时 赋值
 */
@property (nonatomic, strong) UserIndustryDataText *dataText;

@end

NS_ASSUME_NONNULL_END
